<template>
    <div style="text-align:center">
    <div  style="margin-top:60px"><el-button type="success" @click="download(1)">中层干部的民主测评结果的生成</el-button></div>
    <div  style="margin-top:20px"> <el-button type="success" @click="download(2)">中层干部的分项测评结果的生成</el-button></div>
    <div  style="margin-top:20px"><el-button type="success" @click="download(3)">领导班子的民主测评结果的生成</el-button></div>
    <div  style="margin-top:20px"><el-button type="success" @click="download(4)">领导班子的分项测评结果的生成</el-button></div>
    </div>
</template>
<script setup>
import { get,post } from '@/utils/request.js'
import {ElMessage} from 'element-plus'
import router from '@/router'
import { ref,onMounted } from 'vue'
import {userStore} from '@/stores/counter.js'
import {Upload} from '@element-plus/icons-vue'
import moment from 'moment'

const download=(type)=>{
if(type==1) window.open('http://localhost:8080/download/middel')
else if(type==2) window.open('http://localhost:8080/download/middelDispart')
else if(type==3) window.open('http://localhost:8080/download/leaderShip')
else if(type==4) window.open('http://localhost:8080/download/leaderShipDispart')
}

</script>
<style scoped>
</style>